<?php $this->load->view('home/layout/header') ?>
<header class="my-head flex">
	<div class="my-return">
		<a href="<?php echo site_url('home/ucenter/baseInfoSet'); ?>">
			<i class="iconfont icon-zuojiantou"></i>
		</a>
	</div>
	<div class="my-name">
		常用信息
	</div>
</header>
<section class="often-text widthMax">
	<ul class="often-opt flex">
		<li class="active">
			<a href="javascript:;">常用联系人</a>
		</li>
		<li>
			<a href="<?php echo site_url('home/address/addressList'); ?>">收货地址</a>
		</li>
	</ul>
	<dl>
		<dt>
			<a href="<?php echo site_url('home/passenger/passengerInfoAdd'); ?>" class="flex">
				<p class="flex flex-1">
					<i class="iconfont icon-icon--"></i>
					<span class="flex-1">新建常用联系人</span>
				</p>
				<i class="often-icon iconfont icon-youjiantou"></i>
			</a>
		</dt>
		<?php if ( $passengerList->num_rows() > 0  ) : ?>
			<?php foreach ($passengerList->result() as $key => $value) : ?>
			<dd>
				<a href="<?php echo site_url('home/passenger/passengerInfoEdit/'. $value->visitor_id); ?>" class="flex">
					<div class="often-name flex-1">
						<h6><?php echo $value->visitor_name; ?></h6>
						<p>身份证<span><?php echo substr_sfz($value->pin); ?></span></p>
						<p>手机号<span><?php echo subStrMobilePhone($value->mobile_phone); ?></span></p>
					</div>
					<i class="often-icon iconfont icon-youjiantou"></i>
				</a>
			</dd>
			<?php endforeach; ?>
		<?php endif; ?>
	</dl>
</section>
<?php $this->load->view('home/layout/tip'); ?>
<?php $this->load->view('home/layout/footer') ?>
